
package com.insigma.business.qrcode.common.dao;


import com.insigma.business.qrcode.common.dto.CommonAttachmentBSearcher;
import com.insigma.business.qrcode.common.entity.CommonAttachmentDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommonAttachmentDao {

    
    List<CommonAttachmentDO> search(final CommonAttachmentBSearcher innerSearcher);

    
    CommonAttachmentDO get(final String id);

    
    Integer insert(final CommonAttachmentDO commonAttachmentDO);

    
    Integer update(final CommonAttachmentDO commonAttachmentDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);


    List<CommonAttachmentDO> listExpiredFile(int time);
}
